﻿@model ForumSettingsModel
@using Telerik.Web.Mvc.UI;
@{
    //page title
    ViewBag.Title = T("Admin.Configuration.Settings.Forums").Text;
}
@using (Html.BeginForm())
{
    <div class="section-header">
        <div class="title">
            <img src="@Url.Content("~/Administration/Content/images/ico-configuration.png")" alt="" />
            @T("Admin.Configuration.Settings.Forums")
        </div>
        <div class="options">
            <input type="submit" name="save" class="t-button" value="@T("Admin.Common.Save")" />
        </div>
    </div>
    @Html.Action("StoreScopeConfiguration", "Setting")
    @Html.ValidationSummary(false)
    <table class="adminContent">
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.ForumsEnabled_OverrideForStore, model => model.ForumsEnabled, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.ForumsEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ForumsEnabled)
                @Html.ValidationMessageFor(model => model.ForumsEnabled)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.RelativeDateTimeFormattingEnabled_OverrideForStore, model => model.RelativeDateTimeFormattingEnabled, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.RelativeDateTimeFormattingEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.RelativeDateTimeFormattingEnabled)
                @Html.ValidationMessageFor(model => model.RelativeDateTimeFormattingEnabled)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.ShowCustomersPostCount_OverrideForStore, model => model.ShowCustomersPostCount, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.ShowCustomersPostCount):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ShowCustomersPostCount)
                @Html.ValidationMessageFor(model => model.ShowCustomersPostCount)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.AllowGuestsToCreatePosts_OverrideForStore, model => model.AllowGuestsToCreatePosts, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.AllowGuestsToCreatePosts):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowGuestsToCreatePosts)
                @Html.ValidationMessageFor(model => model.AllowGuestsToCreatePosts)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.AllowGuestsToCreateTopics_OverrideForStore, model => model.AllowGuestsToCreateTopics, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.AllowGuestsToCreateTopics):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowGuestsToCreateTopics)
                @Html.ValidationMessageFor(model => model.AllowGuestsToCreateTopics)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.AllowCustomersToEditPosts_OverrideForStore, model => model.AllowCustomersToEditPosts, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.AllowCustomersToEditPosts):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowCustomersToEditPosts)
                @Html.ValidationMessageFor(model => model.AllowCustomersToEditPosts)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.AllowCustomersToDeletePosts_OverrideForStore, model => model.AllowCustomersToDeletePosts, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.AllowCustomersToDeletePosts):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowCustomersToDeletePosts)
                @Html.ValidationMessageFor(model => model.AllowCustomersToDeletePosts)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.AllowCustomersToManageSubscriptions_OverrideForStore, model => model.AllowCustomersToManageSubscriptions, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.AllowCustomersToManageSubscriptions):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowCustomersToManageSubscriptions)
                @Html.ValidationMessageFor(model => model.AllowCustomersToManageSubscriptions)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.TopicsPageSize_OverrideForStore, model => model.TopicsPageSize, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.TopicsPageSize):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.TopicsPageSize)
                @Html.ValidationMessageFor(model => model.TopicsPageSize)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.PostsPageSize_OverrideForStore, model => model.PostsPageSize, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.PostsPageSize):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.PostsPageSize)
                @Html.ValidationMessageFor(model => model.PostsPageSize)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.SearchResultsPageSize_OverrideForStore, model => model.SearchResultsPageSize, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.SearchResultsPageSize):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.SearchResultsPageSize)
                @Html.ValidationMessageFor(model => model.SearchResultsPageSize)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.ForumEditor_OverrideForStore, model => model.ForumEditor, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.ForumEditor):
            </td>
            <td class="adminData">
                @Html.DropDownListFor(model => model.ForumEditor, Model.ForumEditorValues)
                @Html.ValidationMessageFor(model => model.ForumEditor)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.SignaturesEnabled_OverrideForStore, model => model.SignaturesEnabled, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.SignaturesEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.SignaturesEnabled)
                @Html.ValidationMessageFor(model => model.SignaturesEnabled)
            </td>
        </tr>
        <tr class="adminSeparator">
            <td colspan="2">
                <hr />
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.AllowPrivateMessages_OverrideForStore, model => model.AllowPrivateMessages, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.AllowPrivateMessages):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.AllowPrivateMessages)
                @Html.ValidationMessageFor(model => model.AllowPrivateMessages)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.ShowAlertForPM_OverrideForStore, model => model.ShowAlertForPM, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.ShowAlertForPM):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ShowAlertForPM)
                @Html.ValidationMessageFor(model => model.ShowAlertForPM)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.NotifyAboutPrivateMessages_OverrideForStore, model => model.NotifyAboutPrivateMessages, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.NotifyAboutPrivateMessages):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.NotifyAboutPrivateMessages)
                @Html.ValidationMessageFor(model => model.NotifyAboutPrivateMessages)
            </td>
        </tr>
        <tr class="adminSeparator">
            <td colspan="2">
                <hr />
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.ForumFeedsEnabled_OverrideForStore, model => model.ForumFeedsEnabled, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.ForumFeedsEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ForumFeedsEnabled)
                @Html.ValidationMessageFor(model => model.ForumFeedsEnabled)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.ForumFeedCount_OverrideForStore, model => model.ForumFeedCount, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.ForumFeedCount):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ForumFeedCount)
                @Html.ValidationMessageFor(model => model.ForumFeedCount)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.ActiveDiscussionsFeedEnabled_OverrideForStore, model => model.ActiveDiscussionsFeedEnabled, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.ActiveDiscussionsFeedEnabled):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ActiveDiscussionsFeedEnabled)
                @Html.ValidationMessageFor(model => model.ActiveDiscussionsFeedEnabled)
            </td>
        </tr>
        <tr>
            <td class="adminTitle">
                @Html.OverrideStoreCheckboxFor(model => model.ActiveDiscussionsFeedCount_OverrideForStore, model => model.ActiveDiscussionsFeedCount, Model.ActiveStoreScopeConfiguration)
                @Html.NopLabelFor(model => model.ActiveDiscussionsFeedCount):
            </td>
            <td class="adminData">
                @Html.EditorFor(model => model.ActiveDiscussionsFeedCount)
                @Html.ValidationMessageFor(model => model.ActiveDiscussionsFeedCount)
            </td>
        </tr>
    </table>
}